import Vue from 'vue'
import App from './App.vue'
// import App from './03.v-model App.vue'
// import App from './01.provide App.v
// import App from './02.ref App.vue'ue'
import router from './router'
import store from './store'
import axios from 'axios'

Vue.prototype.$axios = axios

//全局注册自定义指令
// Vue.directive('指令名', '配置对象')
Vue.directive('event', {
  //inserted('触发dom元素','对象')
  inserted (ele, obj) {
    console.log(obj.value, 'event触发了');
  }
})


import Vant from 'vant';
import 'vant/lib/index.css';
// 把vant中所有的组件都导入了
Vue.use(Vant)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
